// document element shortcut
var $ = function(elid) { return document.getElementById(elid); }

/**
 * this is a js object representing the layout of the page
 */

var layout = {
	// left column package
	leftcolumn: {
		title: null,
		getTitle: function() {return this.title},
		content: null,
		getContent: function() {return this.content},
		
		setTitle: function(ttl) {
			this.title.innerHTML = ttl;
		},
		
		setContent: function(cntnt) {
			this.content.innerHTML = cntnt;
		}
	},
	// main content package
	mainpanel: {
		title: null,
		getTitle: function() {return this.title},
		content: null,
		getContent: function() {return this.content},
		
		setTitle: function(ttl) {
			this.title.innerHTML = ttl;
		},
		
		setContent: function(cntnt) {
			this.content.innerHTML = cntnt;
		}
	},
	/**
	 * Initialize the page layout
	 */
	init: function() {
		this.leftcolumn.title=$('leftcolumntitle');
		this.leftcolumn.content=$('leftcolumncontent');
		this.mainpanel.title=$('mainpaneltitle');
		this.mainpanel.content=$('mainpanelcontent');
	}
}